package com.zhentao.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhentao.domain.YdOrganization;
import com.zhentao.service.YdOrganizationService;
import com.zhentao.mapper.YdOrganizationMapper;
import com.zhentao.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @description 针对表【yd_organization(机构表)】的数据库操作Service实现
*/
@Service
public class YdOrganizationServiceImpl extends ServiceImpl<YdOrganizationMapper, YdOrganization>
    implements YdOrganizationService{

    @Autowired
    private YdOrganizationMapper ydOrganizationMapper;
    @Override
    public Result organizationList() {
        List<YdOrganization> ydOrganizations = ydOrganizationMapper.selectList(null);
        return Result.success().put("data", ydOrganizations);
    }
}




